%TP1 - partie 1.3
clc;

%Cr�ation

%question 1
A=[1,2;3,4];
B=[3,4;5,6];

%question 2
A+B;
A-B;

%question 3
A*B;
A.*B;

%question 4
inv(A);
A*inv(A);

%question 5
A';
size(A);
det(A);
trace(A);

%question 6
[C,S] = eig(A);
D=C*S*inv(C);


%Manipulation de matrices

%question 1
sum(A);
sum(A');

%question 2
A(1,:);
A(:,1);
A(:);

%question 3
B=[A(1,:),A(:,1)'];

%question 4
mean2(A);
max(max(A));

%question 5
D=[A;5,6];

%question 6
E=D(1:2,:)
E=D(1,:)